import http from 'common/js/http/';
const api = {}
// 登录
api.doLogin = params => http.post(`/api/login`, params);
// 获取用户信息
api.getUserInfo = params => http.get(`/api/user/getUser`, params);
// 获取首页信息
api.noReadInfo = params => http.get(`/api/index/noRead`, params);
// 获取我的客户
api.getMyClient = params => http.get(`/api/sea/myclient`, params);
// 公海客户
api.getUnallot = params => http.get(`/api/sea/unallot`, params);
// 通知公告
api.getNotice = params => http.get(`/api/notice`, params);
// 通知公告详情
api.getNoticeDetails = params => http.get(`/api/notice/${params.noticeId}`, params);
// 收藏
api.addClloct = params => http.post(`/api/sea/addclloct`, params);
// 取消收藏
api.deleteClloct = params => http.post(`/api/sea/deleteclloct`, params);
// 认领客户
api.claimClient = params => http.post(`/api/sea`, params);
// 客户详情
api.clientDetails = params => http.get(`/api/sea/${params.clientId}`, params);
// 新增跟进记录
api.addContent = params => http.post(`/api/sea/addContent`, params);
// 更新跟进状态
api.updateRecord = params => http.put(`/api/sea/updateRecord`, params);
// 释放客户到公海
api.updateClientFree = params => http.post(`/api/sea/free`, params);
// 查询待办事项
api.getBacklog = params => http.get(`/api/backlog`, params);
// 新增待办事项
api.addBacklog = params => http.post(`/api/backlog`, params);
// 待办详情
api.backlogDetail = params => http.get(`/api/backlog/${params.backlogId}`, params);
// 修改待办事项
api.updateBacklog = params => http.put(`/api/backlog`, params);
// 选择用户
api.getUserList = params => http.get(`/api/backlog/userList`, params);
// 修改用户信息
api.updateUser = params => http.put(`/api/user`, params);
// 获取验证码
api.getSms = params => http.get(`/api/user/sms/${params.phone}`, params);
// 修改密码
api.updatePassword = params => http.put(`/api/user/updatePassword`, params);
// 获取未联系客户
api.getNoContect = params => http.get(`/api/sea/noContect`, params);
// 获取未完成待办
api.getBacklogNolist = params => http.get(`/api/backlog/no_list`, params);
// 获取客户类别
api.getDictForm = params => http.get(`/api/common/dict/form`, params);


export default api